package com.zhijian.warehouse.manage.dao;

import com.zhijian.warehouse.manage.entity.export.AccessFacilityRecordExportVo;
import com.zhijian.warehouse.manage.entity.export.AccessIllegalRecordExport;
import com.zhijian.warehouse.manage.entity.po.AccessFacilityRecord;
import com.zhijian.warehouse.manage.entity.vo.request.AccessFacilityRecordSearchVo;
import com.zhijian.warehouse.manage.entity.vo.response.AccessFacilityRecordVo;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface AccessFacilityRecordMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AccessFacilityRecord record);

    int insertSelective(AccessFacilityRecord record);

    AccessFacilityRecord selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AccessFacilityRecord record);

    int updateByPrimaryKey(AccessFacilityRecord record);

    /**
     * 查询总数
     *
     * @param accessFacilityRecordSearchVo
     * @return
     */
    int count(AccessFacilityRecordSearchVo accessFacilityRecordSearchVo);

    /**
     * 查询列表
     *
     * @param accessFacilityRecordSearchVo
     * @return
     */
    List<AccessFacilityRecordVo> selectList(AccessFacilityRecordSearchVo accessFacilityRecordSearchVo);

    /**
     * 查询单个
     *
     * @param accessFacilityRecordSearchVo
     * @return
     */
    AccessFacilityRecordVo selectOne(AccessFacilityRecordSearchVo accessFacilityRecordSearchVo);

    /**
     * 根据ID查询vo
     *
     * @param id
     * @return
     */
    AccessFacilityRecordVo selectVoById(Long id);

    /**
     * 批量删除
     *
     * @param idList
     * @return
     */
    void deleteByIdList(@Param("idList") List<Long> idList);

    /**
     * 动态删除
     *
     * @param accessFacilityRecordSearchVo
     * @return
     */
    void deleteByCondition(AccessFacilityRecordSearchVo accessFacilityRecordSearchVo);

    /**
     * 批量新增
     *
     * @param entities
     * @return
     */
    int insertBatch(@Param("entities") List<AccessFacilityRecord> entities);

    /**
     * 根据ProductId查询列表
     *
     * @param productId
     * @return
     */
    List<AccessFacilityRecordVo> selectListByProductId(Long productId);

    /**
     * 根据AccessProductRecordId查询列表
     *
     * @param accessProductRecordId
     * @return
     */
    List<AccessFacilityRecordVo> selectListByAccessProductRecordId(Long accessProductRecordId);

    /**
     * 根据CloseUserId查询列表
     *
     * @param closeUserId
     * @return
     */
    List<AccessFacilityRecordVo> selectListByCloseUserId(Long closeUserId);

    /**
     * 根据CreateUserId查询列表
     *
     * @param createUserId
     * @return
     */
    List<AccessFacilityRecordVo> selectListByCreateUserId(Long createUserId);

    /**
     * 根据UpdateUserId查询列表
     *
     * @param updateUserId
     * @return
     */
    List<AccessFacilityRecordVo> selectListByUpdateUserId(Long updateUserId);

    /**
     * 查询导出列表
     *
     * @param accessFacilityRecordSearchVo
     * @return
     */
    List<AccessIllegalRecordExport> selectExportList(AccessFacilityRecordSearchVo accessFacilityRecordSearchVo);

    /**
     * 查询导出列表
     *
     * @param param
     * @return
     */
    List<AccessFacilityRecordExportVo> selectFacilityList(AccessFacilityRecordSearchVo param);
}